import java.io.File;
import java.io.IOException;
import java.util.List;

import comparator.ComparateurSerie;
import Exception.PropertiesException;
import Service.ConfigService;
import Service.SeriesService;
import series.Serie;
import singleton.ConfigPropertiesSingleton;
import file.FileGestion;


public class LaunchProcess {
	
	public static void main(String[] args) throws IOException, PropertiesException {
	    ConfigService config = new ConfigService();
	    SeriesService seriesService = new SeriesService();
	    String path = config.getPath();
		List<String> list = FileGestion.listeRepertoire(new File(path));
		ComparateurSerie compaSerie = new ComparateurSerie();
		List<Serie> listSerie = seriesService.getAllSeries(list);
		System.out.println(seriesService.moveFile(listSerie));
		
	}
}
